package com.stx.service.impl;

import java.util.List;

import com.stx.dao.FilmDao;
import com.stx.entity.Film;
import com.stx.service.FilmService;

public class FilmServiceImpl implements FilmService {
    private FilmDao fd;
    
	
	public FilmDao getFd() {
		return fd;
	}


	public void setFd(FilmDao fd) {
		this.fd = fd;
	}


	@Override
	public void addFilm(Film film) {
		fd.addFilm(film);
	}


	@Override
	public List getFilmList() {
		return fd.getFilmList();
	}


	@Override
	public Film getFilm(Film film) {
	    return fd.getFilm(film);
	}

	@Override
	public int getCountFilmList() {
		return fd.getCountFilmList();
	}


	@Override
	public List getSomeList(int firstIndex, int countPage) {
		return fd.getSomeList(firstIndex, countPage);
	}


	@Override
	public List getRandomFilmList(int limit) {
		return fd.getRandomFilmList(limit);
	}


	@Override
	public void updateFilm(Film film) {
		fd.updateFilm(film);
	}


	@Override
	public List getYitongFilmList(int firstIndex, int countPage) {
		return fd.getYitongFilmList(firstIndex, countPage);
	}


	@Override
	public void delFilm(Film film) {
		
		fd.delFilm(film);
	}

}
